﻿using System;

namespace NeurOthello.Logic
{
    public class NetworkMove : Position
    {
        private double[] value;
        public double[] Value { get { return value; } }

        public NetworkMove(Position move, double[] value)
            : base(move.X, move.Y)
        {
            this.value = value;
        }

        public double Advantage(int playerId)
        {
            return value[playerId - 1] - value[2 - playerId];
        }

        public override string ToString()
        {
            return string.Format("{0} value: {1:0}", base.ToString(), value[0]); //"(" + base.ToString() + " value: " + value + ")";
        }

        

    }
}